package com.vue.cn.common.http;

public enum StatusEnum {
    OK(210,"操作成功"),
    ERROR(310,"操作失败"),
    DELETE_SUCCESS  (220,"删除数据成功"),
    DELETE_FAIL(320,"删除数据失败"),
    UPDATE_SUCCESS(230,"更新数据成功"),
    UPDATE_FAIL(330,"更新数据失败"),
    ADD_SUCCESS(240,"添加数据成功"),
    ADD_FAIL(340,"添加数据失败"),
    SELECT_SUCCESS(260,"查询成功"),
    SELECT_FAIL(360,"查询失败"),
    EEEOR_NOT_REGITER(350,"未注册"),
    EEEOR_CODE(360,"验证码错误"),
    EEEOR_ACTIVE(370,"未激活"),
    EEEOR_NOT_LOGIN(380,"未登录")
    ;
    private Integer status;
    private String message;

    StatusEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "StatusEnum{" +
                "status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}
